/* Galaxy Hub — Dashboard sidebar */

.dash-sidebar.navcontainer {
  width: 272px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 40%, #0b1220 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.dash-sidebar__nav {
  min-height: calc(100vh - 64px);
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Brand header */
.dash-sidebar__head {
  padding: 1.25rem 1.15rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.dash-sidebar__logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.dash-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-sidebar__brand-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dash-sidebar__brand-text span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
}

/* Scrollable nav body */
.dash-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 0.65rem 1rem;
  align-items: stretch !important;
  gap: 0.15rem !important;
}

.dash-sidebar__body::-webkit-scrollbar {
  width: 4px;
}

.dash-sidebar__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.dash-sidebar__label {
  margin: 0.85rem 0.65rem 0.35rem;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.dash-sidebar__label:first-child {
  margin-top: 0.25rem;
}

.dash-sidebar__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.65rem 0.75rem !important;
  border: none;
}

/* Nav links */
.dash-sidebar__link {
  width: 100% !important;
  height: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 0.55rem 0.75rem !important;
  gap: 0.75rem !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dash-sidebar__link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-sidebar__link.nav-active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(38, 106, 180, 0.35), rgba(79, 70, 229, 0.25)) !important;
  border-color: rgba(38, 106, 180, 0.4) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(38, 106, 180, 0.15);
}

.dash-sidebar__parent {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dash-sidebar__chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.55;
  transition: transform 0.25s ease;
}

.dash-sidebar__group.is-open .dash-sidebar__chevron,
.dash-sidebar__parent[aria-expanded="true"] .dash-sidebar__chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Icon badges */
.dash-sidebar__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dash-sidebar__link:hover .dash-sidebar__icon {
  transform: scale(1.05);
}

.dash-sidebar__icon--blue { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.dash-sidebar__icon--purple { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.dash-sidebar__icon--green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.dash-sidebar__icon--amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.dash-sidebar__icon--orange { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.dash-sidebar__icon--teal { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.dash-sidebar__icon--indigo { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.dash-sidebar__icon--red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

.dash-sidebar__link--logout:hover {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

/* Subnav */
.dash-sidebar__subnav {
  padding: 0.25rem 0 0.35rem 2.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-sidebar__sublink {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.dash-sidebar__sublink:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dash-sidebar__sublink.is-active {
  color: #93c5fd;
  background: rgba(38, 106, 180, 0.15);
  font-weight: 600;
}

/* Footer */
.dash-sidebar__foot {
  padding: 0.85rem 0.75rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-sidebar__store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #266ab4, #4f46e5);
  box-shadow: 0 4px 14px rgba(38, 106, 180, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-sidebar__store:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(38, 106, 180, 0.45);
}

/* Collapsed desktop sidebar */
@media (min-width: 851px) {
  .dash-sidebar.navclose {
    width: 76px;
  }

  .dash-sidebar.navclose .dash-sidebar__brand-text,
  .dash-sidebar.navclose .dash-sidebar__label,
  .dash-sidebar.navclose .dash-sidebar__text,
  .dash-sidebar.navclose .dash-sidebar__chevron,
  .dash-sidebar.navclose .dash-sidebar__subnav,
  .dash-sidebar.navclose .dash-sidebar__store span,
  .dash-sidebar.navclose .sidebar-divider {
    display: none !important;
  }

  /* style.css hides all .nav-option span — keep icon badges visible */
  .dash-sidebar.navclose .dash-sidebar__icon {
    display: inline-flex !important;
  }

  .dash-sidebar.navclose .dash-sidebar__head {
    padding: 1rem 0.65rem;
  }

  .dash-sidebar.navclose .dash-sidebar__brand {
    justify-content: center;
  }

  .dash-sidebar.navclose .dash-sidebar__logo {
    height: 36px;
  }

  .dash-sidebar.navclose .dash-sidebar__link,
  .dash-sidebar.navclose .nav-option {
    justify-content: center !important;
    padding: 0.55rem !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .dash-sidebar.navclose .dash-sidebar__body {
    padding: 0.85rem 0.45rem 1rem;
  }

  .dash-sidebar.navclose .dash-sidebar__foot {
    padding: 0.75rem 0.5rem;
  }

  .dash-sidebar.navclose .dash-sidebar__store {
    padding: 0.65rem;
    justify-content: center;
  }

  .dash-sidebar.navclose .dash-sidebar__store i {
    margin: 0;
  }
}

/* Mobile slide-in */
@media (max-width: 850px) {
  .dash-sidebar.navcontainer {
    width: 272px;
    position: fixed;
    top: 64px;
    left: -272px;
    height: calc(100vh - 64px);
    transition: left 0.35s ease;
    z-index: 990;
  }

  .dash-sidebar.navclose {
    left: 0;
    width: 272px;
  }
}
